package jp.ac.waseda.cs.washi.game.entity;

import jp.ac.waseda.cs.washi.game.api.PumpkinCoreInfo;
import jp.ac.waseda.cs.washi.gameaiarena.api.Point2;

public class PumpkinCore {
	class PumpkinCoreImpl implements PumpkinCoreInfo {
		@Override
		public int getStrength() {
			return PumpkinCore.this.getStrength();
		}

		@Override
		public Point2 getLocation() {
			return PumpkinCore.this.getLocation();
		}
	}

	private Point2 _location;
	private int _strength;

	public PumpkinCore(Point2 location, int strength) {
		_location = location;
		_strength = strength;
	}

	public void decrementDurability() {
		_strength--;
	}

	public int getStrength() {
		return _strength;
	}

	public Point2 getLocation() {
		return _location;
	}
}
